package com.yc.cloud.portal.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.time.LocalDateTime;

@ApiModel
@Data
public class MediaOcrInfoParam {

    @Schema(description = "设备编号", required = true)
    @NotEmpty(message = "设备编号不能为空")
    private String deviceNum;

    @Schema(description = "OCR识别结果", required = true)
    @NotEmpty(message = "OCR识别结果不能为空")
    private String ocrInfo;


    @Schema(description = "通道号", required = true)
    @NotEmpty(message = "通道号不能为空")
    private String channelCode;

    @Schema(description = "识别时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ocrTime;

    @Schema(description = "OCR文件名,包含后缀名,用于把OCR识别结果和对应的文件关联起来", required = true)
    @NotEmpty(message = "OCR文件名不能为空")
    private String ocrFileName;
}
